package com.thinkgem.jeesite.modules.book.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * BkGeneralLedger
 * Created by aulbrother on 2015/12/21.
 */
public class BkGeneralLedger extends DataEntity<BkGeneralLedger>{
    private String operator;//操作人员
    private String batchNumber;//批次号
    private String checkDate;//验收日期
    private String isbn;
    private String bookName;
    private String outhor;//著者
    private String searchNo;//索书号
    private String bkNumber;//册数
    private String bkPrice;//单价
    private String bkTotalCount;//总价

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    public String getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(String checkDate) {
        this.checkDate = checkDate;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getOuthor() {
        return outhor;
    }

    public void setOuthor(String outhor) {
        this.outhor = outhor;
    }

    public String getSearchNo() {
        return searchNo;
    }

    public void setSearchNo(String searchNo) {
        this.searchNo = searchNo;
    }

    public String getBkNumber() {
        return bkNumber;
    }

    public void setBkNumber(String bkNumber) {
        this.bkNumber = bkNumber;
    }

    public String getBkPrice() {
        return bkPrice;
    }

    public void setBkPrice(String bkPrice) {
        this.bkPrice = bkPrice;
    }

    public String getBkTotalCount() {
        return bkTotalCount;
    }

    public void setBkTotalCount(String bkTotalCount) {
        this.bkTotalCount = bkTotalCount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        BkGeneralLedger that = (BkGeneralLedger) o;

        if (!operator.equals(that.operator)) return false;
        if (!batchNumber.equals(that.batchNumber)) return false;
        if (!checkDate.equals(that.checkDate)) return false;
        if (!isbn.equals(that.isbn)) return false;
        if (!bookName.equals(that.bookName)) return false;
        if (!outhor.equals(that.outhor)) return false;
        if (!searchNo.equals(that.searchNo)) return false;
        if (!bkNumber.equals(that.bkNumber)) return false;
        if (!bkPrice.equals(that.bkPrice)) return false;
        return bkTotalCount.equals(that.bkTotalCount);

    }

    @Override
    public int hashCode() {
        int result = operator.hashCode();
        result = 31 * result + batchNumber.hashCode();
        result = 31 * result + checkDate.hashCode();
        result = 31 * result + isbn.hashCode();
        result = 31 * result + bookName.hashCode();
        result = 31 * result + outhor.hashCode();
        result = 31 * result + searchNo.hashCode();
        result = 31 * result + bkNumber.hashCode();
        result = 31 * result + bkPrice.hashCode();
        result = 31 * result + bkTotalCount.hashCode();
        return result;
    }
}
